<?php
return [
    'toolbar' => [
        'add' => ['text' => '新增',],
        'edit' => ['text' => '编辑',],

        'audit' => [
            'text' => '允许登录',
            'func' => 'enable',
            'icon' => 'fa-complete',
        ],
        'noaudit' => [
            'text' => '禁止登录',
            'func' => 'disable',
            'icon' => 'fa-nocomplete',
        ],
        'resetpassword' => [
            'text' => '重置密码',
            'func' => 'resetpassword',
            'icon' => 'fa-refresh',
        ],
        'delete' => ['separator' => true,],

        'import' => [
            'text' => '导入',
            'icon' => 'fa-add',
        ],


        'refresh' => ['text' => '刷新',]
    ],
    'fg' => [
        'filterToolbar' => true,
        // 'subGrid' => 'true',
        'autoheight' => true,


        'ondblClickRow' => true,
        'colModel' => [
            [
                'name' => 'id',
                'hidden' => true,
                'editable' => true,
                'editname' => 'id',
                'ignore' => true,
            ],
            [
                'label' => '图片',
                'name' => 'filepath',
                'width' => 60,
                'align' => 'center',
                'sortable' => false,
                'image' => true,
                'formatter' => 'formatter.image',
                'search' => false,
            ],
            [
                'label' => '工号',
                'name' => 'code',
                'width' => 90,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '开通账号',
                'name' => 'islock',
                'width' => 50,
                'align' => 'center',
                'sortable' => true,
                'formatter' => 'formatter.islock',
                'search' => false,
            ],
            [
                'label' => '是否在线',
                'name' => 'online',
                'width' => 50,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
                'formatter' => 'formatter.yesno',
                'search' => false,
            ],
            [
                'label' => '姓名',
                'name' => 'name',
                'width' => 60,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '岗位',
                'name' => 'work',
                'width' => 60,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '最后一次登录时间',
                'name' => 'lastlogintime',
                'width' => 100,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',

                'search' => false,
            ],

            [
                'label' => '通知手机',
                'name' => 'phone',
                'width' => 80,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '手机号',
                'name' => 'user_phone',
                'width' => 80,
                'align' => 'center',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '所属部门',
                'name' => 'department_name',
                'width' => 60,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '出生日期',
                'name' => 'birthday',
                'width' => 70,
                'align' => 'center',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '入职时间',
                'name' => 'hiredate',
                'width' => 70,
                'align' => 'center',
                'sortable' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '进公司天数',
                'name' => 'in_day',
                'width' => 65,
                'align' => 'center',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '底薪',
                'name' => 'c_salary',
                'width' => 60,
                'align' => 'right',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '上月工资',
                'name' => 'u_salary',
                'width' => 60,
                'align' => 'right',
                'sortable' => true,
                'auth' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '社保',
                'name' => 'social_insurance',
                'width' => 80,
                'align' => 'center',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '备注',
                'name' => 'remark',
                'width' => 200,
                'align' => 'center',
                'sortable' => true,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
            [
                'label' => '消息',
                'name' => 'notice',
                'width' => 220,
                'align' => 'center',
                'sortable' => false,
                'hidden' => true,
                'classes' => 'gc-black',
            ],
        ],
        'rowNum' => 20,
        'footerAuth' => NULL,
        'dataRowAuth' => NULL,
    ],

];
